package com.tfswue.zqm.listener;

import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;
import jakarta.servlet.annotation.WebListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@WebListener
public class MyContextListenger implements ServletContextListener {
    private static final Logger log = LoggerFactory.getLogger(MyContextListenger.class.getName());
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("web应用启动");

    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("web应用销毁");
    }
}
